<%--
  Created by IntelliJ IDEA.
  User: 赵朋立
  Date: 2022/9/23
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>统计该网页浏览的人员数量</title>
</head>
<body>
   <%
      //去获取服务器上上一个访问人员的数量:
       Integer num = (Integer) application.getAttribute("num");
      //判断获取的数据是不是null
       if(num == null){
            num =1;
       }else{
            num= num+1;
       }
       application.setAttribute("num",num);
   %>
   欢迎来到我的页面,您是第<%=num%>位浏览我网页的人员!!!!
</body>
</html>
